class MixUpApprovals < ActiveRecord::Migration
  def self.up   
    add_column :approvals, :approved, :boolean, :default => false
    remove_column :approvals, :code   
    add_column :submissions, :judges_avg_score, :float, :default => 0
  end

  def self.down                               
    remove_column :approvals, :approved      
    add_column :approvals, :code, :string                            
    remove_column :submissions, :judges_avg_score
  end
end
